import request from '@/utils/request'

//修改跑步区域
export function lepaoEditZoneId(data) {
    return request({
        url: '/lepaotiyu/editZoneId',
        method: 'post',
        data
    })
}

//修改用户虚拟设备参数
export function lepaoEditInfo(data) {
    return request({
        url: '/lepaotiyu/editInfo',
        method: 'post',
        data
    })
}

//获取用户乐跑参数
export function lepaoInfo() {
    return request({
        url: '/lepaotiyu/info',
        method: 'get',
    })
}
//发送短信
export function lepaoGetCode(data) {
    return request({
        url: '/lepaotiyu/getCode',
        method: 'post',
        data
    })
}
//登录
export function lepaoLogin(data) {
    return request({
        url: '/lepaotiyu/login',
        method: 'post',
        data
    })
}
//获取跑步记录list
export function lepaoGetRecordList(data) {
    return request({
        url: '/lepaotiyu/allRecord',
        method: 'post',
        data
    })
}
// 获取学校规则
export function lepaoGetSchoolRuler(data) {
    return request({
        url: '/lepaotiyu/schoolRuler',
        method: 'get',
        data
    })
}

//开始跑步
export function lepaoRunStart() {
    return request({
        url: '/lepaotiyu/runStart',
        method: 'get',
    })
}

//取消本次跑步
export function lepaoRunCancel() {
    return request({
        url: '/lepaotiyu/runCancel',
        method: 'get',
    })
}

//停止跑步，提交成绩
export function lepaoStopRun(data) {
    return request({
        url: '/lepaotiyu/runStop',
        method: 'post',
        data
    })
}

//是否有跑步记录还未提交
export function lepaoRunStatus() {
    return request({
        url: '/lepaotiyu/runStatus',
        method: 'get',
    })
}
